﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace Milestone.Model.Parties
{
	public sealed class Company : Party
	{
		[JsonConstructor]
		private Company()
		{

		}

		//protected override DenormalizedParty GetDenormalizedVersion()
		//{
		//	return new DenormalizedParty( this.Id, this.CompanyName );
		//}

		public String CompanyName { get; private set; }

		public static Company CreateNew( string companyName )
		{
			var company = new Company()
			{
				CompanyName= companyName
			};

			return company;
		}
	}
}
